]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
browser-plugin: Add support for BROWSER_PLUGIN_DIR environment variable
authorVincent Untz <vuntz@gnome.org>
Thu, 15 Sep 2011 05:42:43 +0000 (07:42 +0200)
committerVincent Untz <vuntz@gnome.org>
Thu, 15 Sep 2011 22:17:59 +0000 (00:17 +0200)
This makes it easy to override where the plugin should be installed.

This is based on what totem does.

https://bugzilla.gnome.org/show_bug.cgi?id=659123

browser-plugin/Makefile.am
configure.ac

index 4bfb35048a660749b94aad9a4abfa6f01f5a64df..0dc7da119f86e02ed08fd06941356ed7556e14cb 100644 (file)
@@ -1,5 +1,5 @@
 
-mozillalibdir = $(libdir)/mozilla/plugins
+mozillalibdir = $(BROWSER_PLUGIN_DIR)
 
 mozillalib_LTLIBRARIES = libgnome-shell-browser-plugin.la
 
index a7493c98351a9e398a91a6d4572d2a60356560c2..93dd0a0d4500fbd0d6984bbdb849915a7dc1b48b 100644 (file)
@@ -235,6 +235,9 @@ else
 fi
 AC_SUBST(SHELL_SYSTEM_CA_FILE,["$with_ca_certificates"])
 
+BROWSER_PLUGIN_DIR="${BROWSER_PLUGIN_DIR:-"\${libdir}/mozilla/plugins"}"
+AC_ARG_VAR([BROWSER_PLUGIN_DIR],[Where to install the plugin to])
+
 AC_CONFIG_FILES([
   Makefile
   data/Makefile